package com.centling.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.centling.business.SmsVO;
import com.centling.dao.ISmsDAO;
import com.centling.service.ISmsService;

@Service
@Transactional
public class SmsService implements ISmsService {

	//private Logger log = Logger.getLogger(SmsService.class);
	
	@Resource
	private ISmsDAO smsDAO;
	
	@Override
	public List<SmsVO> getUnSendSms(String beginTime, String endTime) {
		List<SmsVO> list = smsDAO.getUnSendSms(beginTime,endTime);
		return list;
	}

	@Override
	public void updateSmsByID(String id, String isSent, Integer fsendstate) {
		smsDAO.updateSmsByID(id, isSent, fsendstate);
	}
}
